package com.aaa.pro.dao;

import com.aaa.entity.UmsShopFacility;
import com.aaa.entity.UmsShopInformation;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 类名称：StoreDetailsDao
 * 功能描述：店家详情
 * 作者:
 * 日期：2020/1/13 下午 07:56
 * 版本号：1.0.0
 */
public interface StoreDetailsDao {

    /**
     * 查询店铺基础信息表
     * @return
     */
    @Select("SELECT shop_id shopId,title,description,icon FROM ums_shop_facility where shop_id = #{shopid}")
    List<UmsShopFacility> list(int shopid);

    /**
     * 查询店铺的基础信息
     * @param shopid
     * @return
     */
    @Select("select `name`,province,city,borough,address,closed,open_time openTime,phone,images,business_license businessLicense from ums_shop_information where id = #{shopid}")
    List<UmsShopInformation> details(int shopid);


}
